var GBackgroundLayer = cc.Layer.extend({

    _sptBg : null,
    
    ctor : function(number){
        this._super();
        this.initBackground();
        this.initContent(number);
    },

    initBackground : function(){
    	this._sptBg = new cc.Sprite(res.cm_menu_png, cc.rect(0, 0, 640, 960));
    	
        this._sptBg.attr({
            anchorX : 1,
            anchorY : 1,
            x: 640,
            y: 960
        });
        this.addChild(this._sptBg,0);
    },
    
    initContent : function(number){
    	switch(number){
    	case 0:{
    		Text0 = new cc.LabelTTF(_guide[0][0],"res/font/Microsoft Yahei.ttf", 30);
    		Text0.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 50,
    			y: 860,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text0, 1);
    		Text1 = new cc.LabelTTF(_guide[0][1],"res/font/Microsoft Yahei.ttf", 30);
    		Text1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 810,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text1, 1);
    		Text2 = new cc.LabelTTF(_guide[0][2],"res/font/Microsoft Yahei.ttf", 30);
    		Text2.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 760,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text2, 1);
    		Text3 = new cc.LabelTTF(_guide[0][3],"res/font/Microsoft Yahei.ttf", 30);
    		Text3.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 710,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text3, 1);
    		
    		Image1 = new cc.Sprite("res/guide.png", cc.rect(0, 800, 300, 200));

    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 0,
    			y: 500
    		});
    		this.addChild(Image1,1);
    		break;
    	}
    	case 1:{
    		Text0 = new cc.LabelTTF(_guide[1][0],"res/font/Microsoft Yahei.ttf", 30);
    		Text0.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 50,
    			y: 860,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text0, 1);
    		Text1 = new cc.LabelTTF(_guide[1][1],"res/font/Microsoft Yahei.ttf", 30);
    		Text1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 810,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text1, 1);
    		Image1 = new cc.Sprite("res/guide.png", cc.rect(0, 500, 100, 100));

    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 300,
    			y: 710
    		});
    		this.addChild(Image1,1);
    		
    		Text2 = new cc.LabelTTF(_guide[1][2],"res/font/Microsoft Yahei.ttf", 30);
    		Text2.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 660,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text2, 1);
    		
    		Image1 = new cc.Sprite("res/guide.png", cc.rect(0, 800, 300, 200));
    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 0,
    			y: 450
    		});
    		this.addChild(Image1,1);
    		break;
    	}
    	case 2:{
    		Text0 = new cc.LabelTTF(_guide[2][0],"res/font/Microsoft Yahei.ttf", 30);
    		Text0.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 50,
    			y: 860,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text0, 1);
    		Text1 = new cc.LabelTTF(_guide[2][1],"res/font/Microsoft Yahei.ttf", 30);
    		Text1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 810,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text1, 1);
    		Image1 = new cc.Sprite("res/guide.png", cc.rect(0, 0, 300, 200));

    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 200,
    			y: 610
    		});
    		this.addChild(Image1,1);

    		Text2 = new cc.LabelTTF(_guide[2][2],"res/font/Microsoft Yahei.ttf", 30);
    		Text2.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 610,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text2, 1);
    		
    		Text3 = new cc.LabelTTF(_guide[2][3],"res/font/Microsoft Yahei.ttf", 30);
    		Text3.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 560,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text3, 1);

    		Image1 = new cc.Sprite("res/guide.png", cc.rect(0, 800, 300, 200));
    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 0,
    			y: 350
    		});
    		this.addChild(Image1,1);
    		break;
    	}
    	case 3:{
    		Text0 = new cc.LabelTTF(_guide[3][0],"res/font/Microsoft Yahei.ttf", 30);
    		Text0.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 50,
    			y: 860,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text0, 1);
    		Text1 = new cc.LabelTTF(_guide[3][1],"res/font/Microsoft Yahei.ttf", 30);
    		Text1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 810,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text1, 1);
    		Image1 = new cc.Sprite("res/guide.png", cc.rect(0, 200, 300, 200));

    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 200,
    			y: 610
    		});
    		this.addChild(Image1,1);

    		Text2 = new cc.LabelTTF(_guide[3][2],"res/font/Microsoft Yahei.ttf", 30);
    		Text2.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 610,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text2, 1);

    		Text3 = new cc.LabelTTF(_guide[3][3],"res/font/Microsoft Yahei.ttf", 30);
    		Text3.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 560,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text3, 1);

    		Image1 = new cc.Sprite("res/guide.png", cc.rect(0, 800, 300, 200));
    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 0,
    			y: 350
    		});
    		this.addChild(Image1,1);
    		break;
    	}
    	case 4:{
    		Text0 = new cc.LabelTTF(_guide[4][0],"res/font/Microsoft Yahei.ttf", 30);
    		Text0.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 50,
    			y: 860,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text0, 1);
    		Text1 = new cc.LabelTTF(_guide[4][1],"res/font/Microsoft Yahei.ttf", 30);
    		Text1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 810,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text1, 1);
    		Image1 = new cc.Sprite("res/guide.png", cc.rect(300, 0, 200, 400));

    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 200,
    			y: 410
    		});
    		this.addChild(Image1,1);

    		Text2 = new cc.LabelTTF(_guide[4][2],"res/font/Microsoft Yahei.ttf", 30);
    		Text2.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 410,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text2, 1);

    		Text3 = new cc.LabelTTF(_guide[4][3],"res/font/Microsoft Yahei.ttf", 30);
    		Text3.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 360,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text3, 1);

    		Image1 = new cc.Sprite("res/guide.png", cc.rect(0, 800, 300, 200));
    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 0,
    			y: 150
    		});
    		this.addChild(Image1,1);
    		break;
    	}
    	case 5:{
    		Text0 = new cc.LabelTTF(_guide[5][0],"res/font/Microsoft Yahei.ttf", 30);
    		Text0.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 50,
    			y: 860,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text0, 1);
    		Text1 = new cc.LabelTTF(_guide[5][1],"res/font/Microsoft Yahei.ttf", 30);
    		Text1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 810,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text1, 1);
    		Image1 = new cc.Sprite("res/guide.png", cc.rect(0, 400, 400, 100));

    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 710
    		});
    		this.addChild(Image1,1);

    		Text2 = new cc.LabelTTF(_guide[5][2],"res/font/Microsoft Yahei.ttf", 30);
    		Text2.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 660,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text2, 1);

    		Image1 = new cc.Sprite("res/guide.png", cc.rect(0, 800, 300, 200));
    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 0,
    			y: 450
    		});
    		this.addChild(Image1,1);
    		break;
    	}
    	case 6:{
    		Text0 = new cc.LabelTTF(_guide[6][0],"res/font/Microsoft Yahei.ttf", 30);
    		Text0.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 50,
    			y: 860,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text0, 1);
    		Text1 = new cc.LabelTTF(_guide[6][1],"res/font/Microsoft Yahei.ttf", 30);
    		Text1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 810,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text1, 1);

    		Image1 = new cc.Sprite("res/guide.png", cc.rect(0, 400, 100, 100));

    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 300,
    			y: 710
    		});
    		this.addChild(Image1,1);
    		
    		Text2 = new cc.LabelTTF(_guide[6][2],"res/font/Microsoft Yahei.ttf", 30);
    		Text2.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 660,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text2, 1);
    		
    		Image1 = new cc.Sprite("res/guide.png", cc.rect(200, 500, 300, 100));

    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 250,
    			y: 550
    		});
    		this.addChild(Image1,1);
    		
    		Image1 = new cc.Sprite("res/guide.png", cc.rect(0, 600, 500, 200));

    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 50,
    			y: 360
    		});
    		this.addChild(Image1,1);
    		Text3 = new cc.LabelTTF(_guide[6][3],"res/font/Microsoft Yahei.ttf", 30);
    		Text3.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 200,
    			y: 310,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text3, 1);
    		Text4 = new cc.LabelTTF(_guide[6][4],"res/font/Microsoft Yahei.ttf", 30);
    		Text4.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 300,
    			y: 260,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text4, 1);
    		
    		Image1 = new cc.Sprite("res/guide.png", cc.rect(0, 800, 300, 200));
    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 0,
    			y: 150
    		});
    		this.addChild(Image1,1);
    		break;
    	}
    	case 7:{
    		Text0 = new cc.LabelTTF(_guide[7][0],"res/font/Microsoft Yahei.ttf", 30);
    		Text0.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 50,
    			y: 860,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text0, 1);
    		Text1 = new cc.LabelTTF(_guide[7][1],"res/font/Microsoft Yahei.ttf", 30);
    		Text1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 810,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text1, 1);
    		Image1 = new cc.Sprite("res/guide.png", cc.rect(100, 400, 100, 100));

    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 300,
    			y: 710
    		});
    		this.addChild(Image1,1);

    		Image1 = new cc.Sprite("res/guide.png", cc.rect(0, 800, 300, 200));
    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 0,
    			y: 500
    		});
    		this.addChild(Image1,1);
    		break;
    	}
    	case 8:{
    		Text0 = new cc.LabelTTF(_guide[8][0],"res/font/Microsoft Yahei.ttf", 30);
    		Text0.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 50,
    			y: 860,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text0, 1);
    		Text1 = new cc.LabelTTF(_guide[8][1],"res/font/Microsoft Yahei.ttf", 30);
    		Text1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 810,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text1, 1);
    		Image1 = new cc.Sprite("res/guide.png", cc.rect(200, 400, 100, 100));

    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 300,
    			y: 710
    		});
    		this.addChild(Image1,1);

    		Text2 = new cc.LabelTTF(_guide[8][2],"res/font/Microsoft Yahei.ttf", 30);
    		Text2.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 660,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text2, 1);
    		
    		Text3 = new cc.LabelTTF(_guide[8][3],"res/font/Microsoft Yahei.ttf", 30);
    		Text3.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 610,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text3, 1);
    		
    		Image1 = new cc.Sprite("res/guide.png", cc.rect(0, 800, 300, 200));
    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 0,
    			y: 400
    		});
    		this.addChild(Image1,1);
    		break;
    	}
    	case 9:{
    		Text0 = new cc.LabelTTF(_guide[9][0],"res/font/Microsoft Yahei.ttf", 30);
    		Text0.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 50,
    			y: 860,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text0, 1);
    		Text1 = new cc.LabelTTF(_guide[9][1],"res/font/Microsoft Yahei.ttf", 30);
    		Text1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 810,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text1, 1);
    		Image1 = new cc.Sprite("res/guide.png", cc.rect(300, 400, 100, 100));

    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 300,
    			y: 710
    		});
    		this.addChild(Image1,1);

    		Text2 = new cc.LabelTTF(_guide[9][2],"res/font/Microsoft Yahei.ttf", 30);
    		Text2.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 660,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text2, 1);

    		Image1 = new cc.Sprite("res/guide.png", cc.rect(0, 800, 300, 200));
    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 0,
    			y: 450
    		});
    		this.addChild(Image1,1);
    		break;
    	}
    	case 10:{
    		Text0 = new cc.LabelTTF(_guide[10][0],"res/font/Microsoft Yahei.ttf", 30);
    		Text0.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 50,
    			y: 860,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text0, 1);
    		Text1 = new cc.LabelTTF(_guide[10][1],"res/font/Microsoft Yahei.ttf", 30);
    		Text1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 810,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text1, 1);
    		Text2 = new cc.LabelTTF(_guide[10][2],"res/font/Microsoft Yahei.ttf", 30);
    		Text2.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 760,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text2, 1);
    		Text3 = new cc.LabelTTF(_guide[10][3],"res/font/Microsoft Yahei.ttf", 30);
    		Text3.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 660,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text3, 1);
    		Text4 = new cc.LabelTTF(_guide[10][4],"res/font/Microsoft Yahei.ttf", 30);
    		Text4.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 150,
    			y: 610,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text4, 1);

    		Image1 = new cc.Sprite("res/guide.png", cc.rect(0, 800, 300, 200));
    		Image1.attr({
    			anchorX : 0,
    			anchorY : 0,
    			x: 0,
    			y: 400
    		});
    		this.addChild(Image1,1);
    		break;
    	}
    	}
    }
});